import Vue from 'vue'

export default function install () {
  if (install.installed) return
  Vue.directive('title', {
    update: function (el, binding) {
      document.title = binding.value
    },
    inserted: function (el, binding) {
      document.title = binding.value
    }
  })
}
